import axios from "axios"
import { Dispatch } from "redux"
import "../api/homeList"

export const getList=()=>{
    return async(dispath:Dispatch)=>{
        let res=await axios.get("/api/list")
        dispath({
            type:"setList",
            payload:res.data.list
        })
    }
}